package com.zsc.manage.domain.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zsc.common.annotation.Excel;
import com.zsc.common.core.domain.BaseEntity;

/**
 * 订单对象 store_orders
 *
 * @author zsc
 * @date 2024-11-09
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String number;

    /** 订单状态 0未完成 1已完成 */
    @Excel(name = "订单状态 0未完成 1已完成")
    private Long status;

    /** 下单用户id */
    @Excel(name = "下单用户id")
    private Long userId;

    /** 地址id */
    @Excel(name = "地址id")
    private Long addressId;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 实收金额 */
    @Excel(name = "实收金额")
    private BigDecimal amount;

    /** 订单图片 */
    @Excel(name = "订单图片")
    private String imageUrl;

    /** 评价 */
    @Excel(name = "评价")
    private String assess;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNumber(String number)
    {
        this.number = number;
    }

    public String getNumber()
    {
        return number;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getAssess() {
        return assess;
    }

    public void setAssess(String assess) {
        this.assess = assess;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("number", getNumber())
            .append("status", getStatus())
            .append("addressId", getAddressId())
            .append("userId", getUserId())
            .append("orderTime", getOrderTime())
            .append("amount", getAmount())
            .append("remark", getRemark())
                .append("imageUrl", getImageUrl())
                .append("assess", getAssess())
            .toString();
    }
}
